3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to subtract a point of a given dimension from another of the same dimension. All of these routines return a vector that is the difference of the two points.
You can use the Q3Point2D_Subtract function to subtract one two-dimensional point from another.
TQ3Vector2D *Q3Point2D_Subtract (
const TQ3Point2D *p1,
const TQ3Point2D *p2,
TQ3Vector2D *result);
You can use the Q3Param2D_Subtract function to subtract one two-dimensional parametric point from another.
TQ3Vector2D *Q3Param2D_Subtract (
const TQ3Param2D *p1,
const TQ3Param2D *p2,
TQ3Vector2D *result);
You can use the Q3Point3D_Subtract function to subtract one three-dimensional point from another.
TQ3Vector3D *Q3Point3D_Subtract (
const TQ3Point3D *p1,
const TQ3Point3D *p2,
TQ3Vector3D *result);
Previous | QD3D Book | Overview | Chapter Contents | Next |